<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body>
<style>
    .static{
        color: white
    }
    .class1{
        background: #79FF79;
        font-size: 20px;
        text-align: center;
        line-height: 100px;
    }
    .class2{
        width:400px;
        height: 100px;
    }
</style>

<div id="app">
    <div class="static" v-bind:class="['class1', 'class2']">{{date}}</div>
</div>
<!--引入vue文件-->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
    //创建一个应用程序实例
    const vm = Vue.createApp({
        data(){
            return {
                date: "从军玉门道，士大夫撒"
            }
        }
    }).mount('#app');
</script>

</body>
</html>
